package com.wesley.proxy.dynamicProxy.test;

import com.wesley.proxy.dynamicProxy.InvocationHandler;
import com.wesley.proxy.dynamicProxy.Proxy;

public class Client {
	public static void main(String[] args) throws Exception {
		UserMgr mgr = new UserMgrImpl();
		InvocationHandler h = new TransactionHandler(mgr);
		UserMgr u = (UserMgr) Proxy.newProxyInstance(UserMgr.class,h);
		u.addUser();
	}
}
